package com.asiainfo.ncrm.common;

import java.io.File;

import android.net.Uri;
import android.os.Environment;

/**
 * @author Sihon
 * @version 2014-12-25
 */
public class Constant {
	
	  public static final int MAINVIEW = 0;//首页mainView
	  
	  public static final int INDENCARD = 1;//定位身份正扫描
	  
	  public static final int UIM = 2;//uim卡扫描
	  
	  public static final int INDENCARDADD = 3;//新增客户身份证
	  
	  public static final int TEMINAL = 4;//手机终端扫描	
	  
	  public static final int PHOTO=5;
	  
	  public static final int SAVEPIC=6;
	  
	  public static final int PICTURE= 18;
	  
	  public static final String CAMERA_FRONT = "/camera_front.jpg";
	  
	  public static final String TAG = "YNSmartCrm";
	  
	  public static final String IMAGE_FILE_LOCATION = "file:///sdcard/temp.jpg";//temp file
	  
	  public static final String APP_CACAHE_DIRNAME = "/webcache";  
	  
//	  public static final String OUTURL="http://135.224.85.6/smWeb/";
	  
//	  public static final String OUTURL="http://192.168.1.134";
//	  public static final String OUTURL ="http://192.168.2.128:8080";
//	  public static final String OUTURL ="http://192.168.2.184/BizHall/sale/index";
//	  public static final String OUTURL ="http://192.168.2.210/BizHall/sale/index";
//	  public static final String OUTURL ="http://202.100.170.117";//webview访问外网地址
	public static final String OUTURL ="http://135.224.85.196";//webvi	ew访问外网地址
//、、、、
//	  public static final String OUTURL ="http://222.83.4.64";//webview访问外网地址
//		  http://192.168.2.226/BizHall/sale/index
	  public static final String INURL ="http://192.168.2.128/BizHall/sale/index";//webview访问内网地址
	  
	  public static final String PONINTURL = "http://202.100.170.117/BizHall/sale/index";
	  
//	  public static final String UPDATE_SAVENAME = "XJCRM(202.100.170.117).apk";
	  
	  public static final String UPDATE_SAVENAME = "XJCRM.apk";
	  
	  public static final String DOWN_VERSIONXML = "http://222.83.4.103/agentFile/tools/newcrm.xml";
	  
	  public static final String UPLOAD_IMG="http://192.168.0.106/ImgUploadListener/servlet/UploadImgHttpServlet";
	  
	  //NFC读卡器地址
	  public static final String NFC_URL="49.117.145.10";
	  public static final int NFC_URL_PORT=10002; 
	  
	  public static final Uri TEMP_IMAGE = Uri.parse("file://" + Environment.getExternalStorageDirectory().getPath()
				+ File.separator + "temp19.jpg");
	  
	  /**
		 * 这2个重复的没用 public static final int FILECHOOSER_CHOOSERFILE = 10; public
		 * static final int FILECHOOSER_TAKEPICTURE = 12;
		 */
		public static final int CHOISE_FILE = 10;
		
		/**
		 * 清除免登陆密码
		 */
		public static final int CLEAR_NOLOGIN_CACHE = 11;

		public static final int DIRECT_SAVE_TO_SERVER = 12;
		
		public static final String IMAGE_UPLOAD_URL= "http://222.83.4.36:8080/public/upservice";
		
		//读卡返回值
		public static final int NFC_LOAD=10;
		
		//拍照返回
		public static final int GET_PHOTO=11;
		
		public static final String MSG = "crm.blt";
		public static final String INVS_NAME = "INVS300";//因纳伟盛
		public static final String YAST_NAME = "YADR";//银安科技
		public static final String IDR_NAME = "iDR";//精伦
		public static final String SDSE_NAME = "SS";//神思


		public static  final String WUZHIHUA="PassWord#123";//图片获取秘钥
}
